package com.lanswon.icc.admin.vo;

import com.lanswon.icc.common.core.constant.CommonConstant;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description
 * @Author zsw
 * @Date 2019/11/20 10:22
 * @Version V1.0
 **/
@Data
@NoArgsConstructor
public class CreateUpdateElementParams implements Serializable {

    private String elementId;

    @NotBlank(message = "菜单名称不能为空")
    private String name;

    private String permission;

    private String path;

    @NotNull(message = "菜单父ID不能为空")
    private Integer parentId;

    private String icon;

    private String component;

    private Integer sort;

    private int keepAlive;

    @NotNull(message = "菜单类型不能为空")
    private int type;

    /**
     *  创建 : 0   更新：1
     */
    private int flag = CommonConstant.CREAT_OPERATION;

}